import request from '@/utils/requestMd5'


//新增集团客户
export function addGroupClient(params) {
  return request({
    url: '/company/addGroupClient',
    method: 'post',
    params
  })
}

//编辑集团客户
export function editGroupClient(data) {
  return request({
    url: '/company/editGroupClient',
    method: 'post',
    data
  })
}

//根据子公司名称，搜索子公司
export function searcompanylist(params) {
    return request({
      url: '/company/getCompanyListNoGroup',
      method: 'get',
      params
    })
  }

//集团客户列表
export function grouplist(params) {
    return request({
      url: '/company/getGroupClientList',
      method: 'get',
      params
    })
}

//根据集团id获取集团的超级管理员列表
export function getClientAdminList(params) {
  return request({
    url: '/company/getGroupClientAdminList',
    method: 'get',
    params
  })
}

//修改集团客户的超级管理员密码
export function changeAdminpass(data) {
  return request({
    url: '/company/changePasswordGroupAdmin',
    method: 'post',
    data
  })
}

//产品列表
export function loginGroupNoPass(data) {
  return request({
    url: '/company/loginGroupNoPass',
    method: 'get',
    data
  })
}

//客户集团编辑详情
export function groupClientDetail(data) {
  return request({
    url: '/company/groupClientDetail',
    method: 'get',
    data
  })
}

